package com.alnex.mypat.ui;

import javax.swing.*;
import java.awt.*;

/**
 * 窗口
 */
public class JframeSoft extends JFrame {

    public JframeSoft(JpanelSoft panel){
        //设置窗口位置和大小
        this.setBounds(1030,400,500,500);
        //颜色透明
        this.setUndecorated(true);
        this.setBackground(new Color(0,0,0,0));
        //窗口置顶位置
        this.setAlwaysOnTop(true);
        //面板设置进来
        this.setContentPane(panel);
    }

}
